package com.run.motion.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 运动记录对象 my_motion
 * 
 * @author lyq
 * @date 2022-03-26
 */
public class Motion
{

    /** 运动数据id */
    private Long moid;

    /** 用户id */
    private String userId;

    /** 距离 */
    private Double distance;

    /** 平均配速 */
    private String avgPace;

    /** 跑步时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
    private String runTime;

    /** 卡路里 */
    private String calorie;

    /** 结束时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
    private String endTime;


    public void setMoid(Long moid) 
    {
        this.moid = moid;
    }

    public Long getMoid() 
    {
        return moid;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setDistance(Double distance)
    {
        this.distance = distance;
    }

    public Double getDistance()
    {
        return distance;
    }
    public void setRunTime(String runTime)
    {
        this.runTime = runTime;
    }

    public String getAvgPace() {
        return avgPace;
    }
    public void setAvgPace(String avgPace) {
        this.avgPace = avgPace;
    }

    public String getRunTime()
    {
        return runTime;
    }
    public void setCalorie(String calorie)
    {
        this.calorie = calorie;
    }

    public String getCalorie()
    {
        return calorie;
    }
    public void setEndTime(String endTime)
    {
        this.endTime = endTime;
    }

    public String getEndTime()
    {
        return endTime;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("moid", getMoid())
            .append("userId", getUserId())
            .append("distance", getDistance())
            .append("runTime", getRunTime())
            .append("calorie", getCalorie())
            .append("endTime", getEndTime())
            .toString();
    }
}
